package com.csproj.example.service.mapper;

import com.csproj.example.domain.Organization;
import com.csproj.example.service.dto.OrganizationDTO;
import com.csproj.siiat.service.mapper.EntityMapper;
import org.mapstruct.Mapper;
import org.springframework.stereotype.Repository;

/**
 * Mapper for the entity Organization and its DTO OrganizationDTO.
 */
@Mapper(componentModel = "spring", uses = {})
@Repository
public interface OrganizationMapper extends EntityMapper<OrganizationDTO, Organization> {


    default Organization fromId(String id) {
        if (id == null) {
            return null;
        }
        Organization organization = new Organization();
        organization.setId(id);
        return organization;
    }
}
